#@bootStrapLayout("商户管理信息界面-创建商户帐号")
#define bootStrapMain()
<div class="col-md-12" >
    #include("../../common/header.html")
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li><a href="#">主页</a></li>
            <li class="active">创建商户帐号</li>
            <li></li>
        </ol>
    </div>
    <div class="col-md-12" >
        <div class="col-md-6 col-md-offset-3">
        <form class="form-horizontal" id="submitForm">
            <div class="form-group">
                <label for="oldPass" class="col-sm-2 control-label">商户ID</label>
                <div class="col-sm-10">
                    #@textInput("text","member_ser","member_ser","请输入商户ID...","")
                </div>
            </div>
            <div class="form-group">
                <label for="newPass" class="col-sm-2 control-label">商户手机号</label>
                <div class="col-sm-10">
                    #@textInput("text","mobile","mobile","请输入商户手机号...","")
                </div>
            </div>
            <div class="form-group">
                <label for="confirmPass" class="col-sm-2 control-label">初始密码</label>
                <div class="col-sm-10">
                    #@textInput("password","password","password","请输入初始密码...","")
                </div>
            </div>
            <div class="form-group">
                <label for="confirmPass" class="col-sm-2 control-label">确认密码</label>
                <div class="col-sm-10">
                    #@textInput("password","confirmPass","confirmPass","请输入确认密码...","")
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-5 col-sm-10">
                    <button type="button" id="submitBtn" class="btn btn-primary">点我绑定商户</button>
                </div>
            </div>
        </form>
    </div>
    </div>
</div>
#end

#define bootStrapJs()
<script>
    $(document).ready(function(){
        $("#submitBtn").click(function(){
            var config={
                "url":"#(contextPath)/travel/member/doBindShopAccout",
                "data":$("#submitForm").serialize(),
                "successCallBack":function(resp){
                    if(resp.result){
                       layer.msg(resp.data);
                       $("#submitForm")[0].reset();
                    }else{
                        layer.msg(resp.data);
                    }
                }
            };
            var ajax = new AjaxUtils(config)
            layer.confirm('确定要进行当前操作？', {
                btn: ['确定','取消']
            }, function(){
                ajax.executeRequest();
            }, function(){
            });
        })


    })
</script>

#end